home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16933 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.primenet.com!not-for-mail
  2. From: kj7bg@primenet.com (Bob White)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Compiler bug in Borland C++ 5.0
  5. Date: 12 Apr 1996 13:11:02 -0700
  6. Organization: Primenet Services for the Internet
  7. Sender: root@primenet.com
  8. Message-ID: <4kmdcm$6vr@nnrp1.news.primenet.com>
  9. References: <316A22E0.47B6@ee.oulu.fi> <4kglku$6lm@druid.borland.com>
  10. X-Posted-By: ip201.boi.primenet.com
  11. X-Newsreader: WinVN 0.99.7
  12. MIME-Version: 1.0
  13. Content-Type: Text/Plain; charset=US-ASCII
  14.  
  15. IMHO strategic libraries such as OWL should compile with any alignment.  If 
  16. that means the alignment is set in the header files via pragmas for that 
  17. library so be it.  Just my 2 cents.
  18.             Bob
  19.  
  20.  
  21. In article <4kglku$6lm@druid.borland.com>, pete@borland.com says...
  22. >
  23. >In article <316A22E0.47B6@ee.oulu.fi>, artsi@ee.oulu.fi says...
  24. >>
  25. >>Try setting data aligment to other than byte and compile OWL project.
  26. >>Virtual function InitMainWindow is not called with this setup (Double 
  27. >>word or quad word). With word aligment program crashes. Byte aligment 
  28. >>always work.
  29. >>
  30. >>I have Borland C++ 5.0 with patch 1.
  31. >
  32. >OWL was built with byte alignment. You cannot change alignment piecemeal: all 
  33. >of the pieces that interact must agree on how structures are laid out. In 
  34. >order to use a different alignment you would have to recompile the OWL DLL 
  35. with 
  36. >the new alignment as well. Not recommended.
  37. >
  38.  
  39.